package com.yuexun.dhdoctor.util;

/**
 * Created by Administrator on 2017/5/12 0012.
 */

public class CommonUtil {

    //避免连续点击
    private static long lastClickTime;

    public synchronized static boolean isFastClick() {
        long time = System.currentTimeMillis();
        if (time - lastClickTime <500) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}
